package com.arrcen.medicen.core.match.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;

@Data
public class ResultHashMap implements Serializable {

    @JsonProperty("success")
    @ApiModelProperty(value = "是否执行成功",example = "true")
    public boolean success;

    @JsonProperty("msg")
    @ApiModelProperty(value = "执行消息",example = "")
    public String msg;


    @JsonProperty("code")
    @ApiModelProperty(value = "错误代码",example = "")
    public String code;

    @JsonProperty("dataList")
    @ApiModelProperty(value = "返回数据列表")
    public HashMap<String,String> dataList;

    public ResultHashMap() {
        this.success = false;
    }

    public ResultHashMap(boolean success) {
        this.success = success;
    }

    public ResultHashMap(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }



}
